import { defineStore } from "pinia";
import { ref } from "vue";

export default defineStore("app", () => {
  const state = ref({
    title: "Vite Vue 3 Template",
  });

  const setTitle = (title: string) => {
    state.value.title = title;
  };

  return { state, setTitle };
});
